<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户中心</title>
    <link
        href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&family=Poppins:wght@400;600&display=swap"
        rel="stylesheet">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }

        body {
            background: #f5f7fa;
            font-family: 'Poppins', sans-serif;
            color: #333;
        }

        .navbar {
            width: 100%;
            background-color: #ffffff;
            padding: 15px 20px;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: fixed;
            top: 0;
            z-index: 1000;
        }

        .navbar .logo {
            font-size: 24px;
            font-weight: 700;
            color: #4CAF50;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .navbar ul {
            list-style: none;
            display: flex;
            align-items: center;
        }

        .navbar ul li {
            margin-left: 25px;
        }

        .navbar ul li a {
            text-decoration: none;
            font-size: 16px;
            color: #333;
            font-weight: 500;
            transition: color 0.3s ease;
            position: relative;
        }

        .navbar ul li a::after {
            content: '';
            position: absolute;
            width: 0%;
            height: 2px;
            background-color: #4CAF50;
            left: 0;
            bottom: -5px;
            transition: all 0.3s ease;
        }

        .navbar ul li a:hover {
            color: #4CAF50;
        }

        .navbar ul li a:hover::after {
            width: 100%;
        }

        .navbar ul li a.active {
            color: #4CAF50;
        }

        .user-info {
            display: flex;
            align-items: center;
            font-size: 16px;
        }

        .user-info div {
            margin-left: 15px;
            text-align: right;
        }

        .user-info .bid {
            font-weight: bold;
            color: #4CAF50;
        }

        .user-info .username {
            font-weight: 500;
        }

        .user-info .email {
            font-size: 14px;
            color: #666;
        }

        .user-info img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-left: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        /* For responsive design */
        @media screen and (max-width: 768px) {
            .navbar ul {
                flex-direction: column;
                background-color: #ffffff;
                width: 100%;
                position: absolute;
                top: 100%;
                left: 0;
                padding: 20px 0;
                display: none;
                box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
                transition: opacity 0.3s ease, visibility 0.3s ease;
                opacity: 0;
                visibility: hidden;
            }

            .navbar ul.active {
                display: flex;
                opacity: 1;
                visibility: visible;
            }

            .navbar ul li {
                margin-left: 0;
                margin-bottom: 15px;
            }

            .navbar .menu-toggle {
                display: block;
                cursor: pointer;
            }

            .user-info {
                flex-direction: column;
                align-items: flex-start;
            }

            .user-info div {
                margin-left: 0;
            }

            .user-info img {
                margin-left: 0;
                margin-top: 10px;
            }
        }

        .menu-toggle {
            display: none;
            font-size: 24px;
            cursor: pointer;
        }
    </style>
</head>

<body>
    <!-- 导航栏 -->
    <nav class="navbar">
        <div class="logo">UserCenter</div>
        <ul>
            <li><a href="#" class="active" aria-label="Home">Home</a></li>
            <li><a href="#" aria-label="About">About</a></li>
            <li><a href="#" aria-label="Services">Services</a></li>
            <li><a href="bch.html" aria-label="Back to previous page">返回</a></li>
        </ul>
        <div class="user-info">
            <div>
                <div class="bid">{{BID}}:BID</div>
                <div class="username">{{USERNAME}}:用户</div>
                <div class="email">{{EMAIL}}:邮箱</div>
            </div>
            <img src="/picture/head.jpeg" alt="User Avatar">
        </div>
        <div class="menu-toggle" aria-label="Menu toggle">☰</div>
    </nav>

    <script>
        // Responsive Menu Toggle
        document.addEventListener('DOMContentLoaded', () => {
            const menuToggle = document.querySelector('.menu-toggle');
            const navbarUl = document.querySelector('.navbar ul');

            menuToggle.addEventListener('click', () => {
                navbarUl.classList.toggle('active');
                menuToggle.setAttribute('aria-expanded', navbarUl.classList.contains('active'));
            });
        });
    </script>
</body>

</html>